/**
 * author:Administrator
 * date:2016/1/5
 * desc:TODO
 */

var Sequelize = require('sequelize');
var cfg = require('../config/index.js');
var cfgMysql = cfg.mysql;

var seq = new Sequelize(
  cfg.mysql.dbName,
  cfg.mysql.user,
  cfg.mysql.password,
  {
    host: cfg.mysql.host,
    port: cfg.mysql.port,
    logging: false,
  }
);

module.exports = seq;